package routers

import (
	"food-hub/handlers"
	"github.com/gin-gonic/gin"
)

func Init() *gin.Engine {

	r := gin.Default()
	r.GET("/food/list", handlers.FoodList)
	r.GET("/food/detail", handlers.FoodDetail)
	r.POST("/add", handlers.Add)
	return r
}
